<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />  
    <title>会员收益记录</title>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta name="author" content="刘代应">
	<meta name="hashcode" content="859407899">
	
	<script>window.duteTag="lz";</script>
	<script type="text/javascript" src="/admin/js/dute-1.0.js"></script>
	<script type="text/javascript" src="/admin/js/jquery-1.7.1.min.js"></script>
	
	<script type="text/javascript" src="/admin/js/lazy3q.ui.js"></script>
	<script>
		document.write('<link rel="stylesheet" type="text/css" href="/admin//css/'+($.cookie('theme')||'elegant')+'/lazy3q.ui.css" /> ');
	</script>
	
	<script type="text/javascript" src="/admin/js/jquery-ui-1.10.2.custom.min.js"></script>
	
	<!-- 用户自定义js(懒加载) -->
	<script type="text/javascript" src="/admin/js/define.js"></script>
	<!-- 用户自定义css样式 -->
	<link rel="stylesheet" type="text/css" href="/admin/css/define.css"/>
	<!-- icon font -->
  	<link rel="stylesheet" href="/admin/css/iconfont.css">
	
	
	
	<script type="text/javascript">
		window.basePath="/";
		window.hashcode = "859407899";
	</script>
		
	<!-- 感谢kindeditor出品的在线HTML编辑控件 -->
	<script type="text/javascript" charset="utf-8" src="/admin/js/kindeditor/kindeditor.js"></script>
		
	<!-- 感谢My97DatePicker出品的时间控件 -->
	<script language="javascript" type="text/javascript" src="/admin/js/My97DatePicker/WdatePicker.js"></script>
	
	<!------------------------VIEW_HTML_HEAD------------------------>
	<!------------------------VIEW_HTML_HEAD------------------------>	
	
</head>
<script>
Page({
  data:{
    
  },
  onLoad: function(options) {
  	var THIS = this;
  	THIS.setData(options);
  	$.getAjax("incomerecord.get.do",options,function(protocol){
  		if(protocol.message){
  			$.toast(protocol.message);
  		}
  		document.title={
  			 "insert":"创建会员收益记录"
  			,"inport":"导入会员收益记录"
  			,"update":"修改会员收益记录"
  			,"detail":"会员收益记录详情"
  			
  			
			
  		}[options.edittype];
  		THIS.setData(protocol.data); 
  		
  		/******************VIEW_HTML_SET_DATA******************/
  		/******************VIEW_HTML_SET_DATA******************/
  	});
  }
});
</script>

<script>
window["lzFlashUrl"]=top.lzFlashUrl||"/admin/flash/";
window["uploadUrl"]=top.uploadUrl||"/admin/upload.do";

$(function(){
		if($("#headPortrait").size()>0){
			 //构造编辑页incomeRecord.headPortrait为html编辑控件
			 KE.init({
				id : "headPortrait",
				width : "750px",height : "300px", 
				imageUploadJson : window["uploadUrl"]
			 });
			 KE.create("headPortrait");
		 }
		 
	$("#incomerecordForm").form({
		"":function(){}
		,"incomeRecord.id":function(el){
			if($(el).parents("dd:eq(0)").find("b:contains('*')").size()>0){
			}
		}
		,"incomeRecord.userType":function(el){
		}
		,"incomeRecord.source":function(el){
		}
		,"incomeRecord.revenueType":function(el){
		}
		,"incomeRecord.income":function(el){
				var pattern = /^-?(([1-9]\d{0,9})|0)?(\.)?(\d+)?/;
				if(el.value!="" && !pattern.test(el.value))
					return "贡献收益输入格式错误";
		}
		,"incomeRecord.headPortrait":function(el){
			if($("#headPortrait").get(0))
			 	KE.sync("headPortrait");		 
		}
		,"incomeRecord.fullName":function(el){
			if(el.value.length>32 && el.value.indexOf("[*]")==-1)
				return "姓名最大长度为32个字符";
		}
		,"incomeRecord.incomersName":function(el){
			if(el.value.length>32 && el.value.indexOf("[*]")==-1)
				return "贡献人名称最大长度为32个字符";
		}
		,"incomeRecord.incomerName":function(el){
			if(el.value.length>32 && el.value.indexOf("[*]")==-1)
				return "收益人姓名最大长度为32个字符";
		}
		,"incomeRecord.contributor":function(el){
		}
		,"incomeRecord.beneficiary":function(el){
		}
		,"incomeRecord.orderNumber":function(el){
			if(el.value.length>32 && el.value.indexOf("[*]")==-1)
				return "订单编号最大长度为32个字符";
		}
		,"incomeRecord.brands":function(el){
		}
		,"incomeRecord.endStatus":function(el){
		}
		,"incomeRecord.updateTime":function(el){
			if($(el).parents("dd:eq(0)").find("b:contains('*')").size()>0){
				if(jQuery.trim(el.value)=="")
					return "修改时间不能为空";
			}
		}
		,"incomeRecord.addTime":function(el){
			if($(el).parents("dd:eq(0)").find("b:contains('*')").size()>0){
				if(jQuery.trim(el.value)=="")
					return "添加时间不能为空";
			}
		}
		,"incomeRecord.status":function(el){
			if($(el).parents("dd:eq(0)").find("b:contains('*')").size()>0){
				if(jQuery.trim(el.value)=="")
					return "请选择状态";
			}
		}
	},function(){
		/******************************LAZY3Q_FORM_VALIDATE******************************/
		/******************************LAZY3Q_FORM_VALIDATE******************************/
	});		
});
</script>
 
<body style="display:none;">



<!------------------------VIEW_HTML_TOP------------------------>
<!------------------------VIEW_HTML_TOP------------------------>




<form enctype="{{inports!=null?'multipart/form-data':''}}" lz:if="{{edittype=='insert'||edittype=='update'||edittype=='detail'||edittype=='any'||edittype=='inport'}}" class="form editform edittype_{{edittype}}" ref="IncomeRecord" id="incomerecordForm" name="incomerecordForm" target="jsoniframe" action="incomerecord.{{edittype=='any'?'update':edittype}}.do" method="post">
	<div class="head"></div>
	<div class="body">
		<div class="content">
			<div lz:if="{{edittype!='detail'}}" class="prompt" style="display:none;">
				温馨提示：请仔细填写会员收益记录相关信息，<span class="extrude">"*" 为必填选项。</span>
			</div>
			<br/>
			<lz:block lz:if="{{message}}">
			<br/>
			<center>
				<font color="red"><h4>{{message}}</h4></font>
			</center>
			<br/>
			</lz:block>
			<input type="hidden" value="{{complete}}" name="complete" id="complete" />
			<input type="hidden" value="{{ids}}" name="ids" id="ids" />
			<textarea name="PARAMS" id="PARAMS" style="display:none">{{PARAMS}}</textarea>
			
			
			<lz:block lz:if="{{inports}}">
			  <div class="line"></div>
			  <dl style="width:98%;">
			  	<dt>Excel文件:</dt>
			  	<dd>
			  		<input type="hidden" value="{{inports}}" name="inports" id="inports" />
			  		<input type="hidden" value="{{inport$}}" name="inport$" id="inport$" />
			  		<input name="file" name="file" type="file"/>
			  		<b>*</b>
			  		<div>
						请上传excel文件，表格列依次为：[{{inport$}}]，excel表格第一行为列名称，将不作为上传数据行
					</div>
			  	</dd>
			  </dl>
			  <div class="line"></div>
			</lz:block>
			
			
					
	{{lz.set("id_editable",((edittype=='insert'||(edittype=='inport' && (!lz.idin(inports,"id"))))&&true)||(edittype=='update'&&true)||((edittype=='any')&&(lz.idin(fields,"id"))))}}
	{{lz.set("id_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
				
	
	{{before$id}}
	<dl lz:if="{{id_editable||id_readonly}}" class="id hidden " major  ref="id">
		<dt>编　　号:</dt>
		<dd lz:if="{{id_editable}}" input="hidden">
			<lz:block lz:if="{{incomeRecord$id}}">
				{{incomeRecord$id}}
			</lz:block>
			<lz:block lz:if="{{!incomeRecord$id}}">
			<input type="hidden" value="{{lz.htm(incomeRecord.id)}}" name="incomeRecord.id" id="id" />
	 	 </lz:block>
	 	 
	 	 <em></em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{id_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="id">{{incomeRecord.id}}</textarea>
		 		<span>
		 	
			 {{lz.html(incomeRecord.id$||incomeRecord.id)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$id}}
					
	{{lz.set("userType_editable",((edittype=='insert'||(edittype=='inport' && (!lz.idin(inports,"userType"))))&&true)||(edittype=='update'&&true)||((edittype=='any')&&(lz.idin(fields,"userType"))))}}
	{{lz.set("userType_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
				
	
	{{before$userType}}
	<dl lz:if="{{userType_editable||userType_readonly}}" class="ribs userType  " major  ref="userType">
		<dt>用户身份:</dt>
		<dd lz:if="{{userType_editable}}" input="select">
			<lz:block lz:if="{{incomeRecord$userType}}">
				{{incomeRecord$userType}}
			</lz:block>
			<lz:block lz:if="{{!incomeRecord$userType}}">
		 	<select class="narrow" id="userType" name="incomeRecord.userType">
		 		<option value="">请选择</option>
				<option value="1" selected='{{incomeRecord.userType=="1"?"selected":""}}'>普通会员</option>
				<option value="2" selected='{{incomeRecord.userType=="2"?"selected":""}}'>代理</option>
				<option value="3" selected='{{incomeRecord.userType=="3"?"selected":""}}'>合伙人</option>
		 	</select>
	 	 </lz:block>
	 	 
	 	 <em>请选择会员收益记录的用户身份</em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{userType_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="userType">{{incomeRecord.userType}}</textarea>
		 		<span>
		 	
			 {{lz.html(incomeRecord.userType$||incomeRecord.userType)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$userType}}
					
	{{lz.set("source_editable",((edittype=='insert'||(edittype=='inport' && (!lz.idin(inports,"source"))))&&true)||(edittype=='update'&&true)||((edittype=='any')&&(lz.idin(fields,"source"))))}}
	{{lz.set("source_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
				
	
	{{before$source}}
	<dl lz:if="{{source_editable||source_readonly}}" class="ribs source  " major  ref="source">
		<dt>来　　源:</dt>
		<dd lz:if="{{source_editable}}" input="select">
			<lz:block lz:if="{{incomeRecord$source}}">
				{{incomeRecord$source}}
			</lz:block>
			<lz:block lz:if="{{!incomeRecord$source}}">
		 	<select class="narrow" id="source" name="incomeRecord.source">
		 		<option value="">请选择</option>
				<option value="1" selected='{{incomeRecord.source=="1"?"selected":""}}'>直接购买</option>
				<option value="2" selected='{{incomeRecord.source=="2"?"selected":""}}'>余额充值</option>
				<option value="3" selected='{{incomeRecord.source=="3"?"selected":""}}'>代理卡购买</option>
				<option value="4" selected='{{incomeRecord.source=="4"?"selected":""}}'>合伙人卡购买</option>
		 	</select>
	 	 </lz:block>
	 	 
	 	 <em>请选择会员收益记录的来源</em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{source_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="source">{{incomeRecord.source}}</textarea>
		 		<span>
		 	
			 {{lz.html(incomeRecord.source$||incomeRecord.source)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$source}}
					
	{{lz.set("revenueType_editable",((edittype=='insert'||(edittype=='inport' && (!lz.idin(inports,"revenueType"))))&&true)||(edittype=='update'&&true)||((edittype=='any')&&(lz.idin(fields,"revenueType"))))}}
	{{lz.set("revenueType_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
				
	
	{{before$revenueType}}
	<dl lz:if="{{revenueType_editable||revenueType_readonly}}" class="ribs revenueType  " major  ref="revenueType">
		<dt>收益类型:</dt>
		<dd lz:if="{{revenueType_editable}}" input="select">
			<lz:block lz:if="{{incomeRecord$revenueType}}">
				{{incomeRecord$revenueType}}
			</lz:block>
			<lz:block lz:if="{{!incomeRecord$revenueType}}">
		 	<select class="narrow" id="revenueType" name="incomeRecord.revenueType">
		 		<option value="">请选择</option>
				<option value="1" selected='{{incomeRecord.revenueType=="1"?"selected":""}}'>直接</option>
				<option value="2" selected='{{incomeRecord.revenueType=="2"?"selected":""}}'>间接</option>
		 	</select>
	 	 </lz:block>
	 	 
	 	 <em>请选择会员收益记录的收益类型</em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{revenueType_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="revenueType">{{incomeRecord.revenueType}}</textarea>
		 		<span>
		 	
			 {{lz.html(incomeRecord.revenueType$||incomeRecord.revenueType)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$revenueType}}
					
	{{lz.set("income_editable",((edittype=='insert'||(edittype=='inport' && (!lz.idin(inports,"income"))))&&true)||(edittype=='update'&&true)||((edittype=='any')&&(lz.idin(fields,"income"))))}}
	{{lz.set("income_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
				
	
	{{before$income}}
	<dl lz:if="{{income_editable||income_readonly}}" class="ribs income  " major  ref="income">
		<dt>贡献收益:</dt>
		<dd lz:if="{{income_editable}}" input="menoy">
			<lz:block lz:if="{{incomeRecord$income}}">
				{{incomeRecord$income}}
			</lz:block>
			<lz:block lz:if="{{!incomeRecord$income}}">
		 	<input onchange="onkeyup()" onkeyup="var reg=/^-?(([1-9]\d{0,9})|0)?(\.)?(\d+)?/;this.value=this.value.match(reg)?this.value.match(reg)[0]:''" type="text" class="input narrow"  maxlength="8" name="incomeRecord.income" id="income"  value="{{lz.htm(incomeRecord.income)}}"/>
	 	 </lz:block>
	 	 
	 	 <em>请输入会员收益记录的贡献收益</em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{income_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="income">{{incomeRecord.income}}</textarea>
		 		<span>
		 	
			 {{lz.html(incomeRecord.income$||incomeRecord.income)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$income}}
					
	{{lz.set("headPortrait_editable",((edittype=='insert'||(edittype=='inport' && (!lz.idin(inports,"headPortrait"))))&&true)||(edittype=='update'&&true)||((edittype=='any')&&(lz.idin(fields,"headPortrait"))))}}
	{{lz.set("headPortrait_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
				
	
	{{before$headPortrait}}
	<dl lz:if="{{headPortrait_editable||headPortrait_readonly}}" class="ribs headPortrait   wider" major  ref="headPortrait">
		<dt>头　　像:</dt>
		<dd lz:if="{{headPortrait_editable}}" input="html">
			<lz:block lz:if="{{incomeRecord$headPortrait}}">
				{{incomeRecord$headPortrait}}
			</lz:block>
			<lz:block lz:if="{{!incomeRecord$headPortrait}}">
		    <textarea class="input wide html"  id="headPortrait" name="incomeRecord.headPortrait" style="height:300px;visibility:hidden;">{{incomeRecord.headPortrait}}</textarea>
	 	 </lz:block>
	 	 
	 	 <em>请输入会员收益记录的头像</em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{headPortrait_readonly}}">
		 	<div class="state-input wide">
		 		<span>
		 	
			 {{lz.html(incomeRecord.headPortrait$||incomeRecord.headPortrait)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$headPortrait}}
					
	{{lz.set("fullName_editable",((edittype=='insert'||(edittype=='inport' && (!lz.idin(inports,"fullName"))))&&true)||(edittype=='update'&&true)||((edittype=='any')&&(lz.idin(fields,"fullName"))))}}
	{{lz.set("fullName_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
				
	
	{{before$fullName}}
	<dl lz:if="{{fullName_editable||fullName_readonly}}" class="ribs fullName  " major  ref="fullName">
		<dt>姓　　名:</dt>
		<dd lz:if="{{fullName_editable}}" input="text">
			<lz:block lz:if="{{incomeRecord$fullName}}">
				{{incomeRecord$fullName}}
			</lz:block>
			<lz:block lz:if="{{!incomeRecord$fullName}}">
		 	<input type="text" class="input narrow"  maxlength="32" name="incomeRecord.fullName" id="fullName"  value="{{lz.htm(incomeRecord.fullName)}}"/>
	 	 </lz:block>
	 	 
	 	 <em>请输入会员收益记录的姓名</em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{fullName_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="fullName">{{incomeRecord.fullName}}</textarea>
		 		<span>
		 	
			 {{lz.html(incomeRecord.fullName$||incomeRecord.fullName)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$fullName}}
					
	{{lz.set("incomersName_editable",((edittype=='insert'||(edittype=='inport' && (!lz.idin(inports,"incomersName"))))&&false)||(edittype=='update'&&false)||((edittype=='any')&&(lz.idin(fields,"incomersName"))))}}
	{{lz.set("incomersName_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
				
	
	{{before$incomersName}}
	<dl lz:if="{{incomersName_editable||incomersName_readonly}}" class="incomersName  " major  ref="incomersName">
		<dt>贡献人名称:</dt>
		<dd lz:if="{{incomersName_editable}}" input="text">
			<lz:block lz:if="{{incomeRecord$incomersName}}">
				{{incomeRecord$incomersName}}
			</lz:block>
			<lz:block lz:if="{{!incomeRecord$incomersName}}">
		 	<input type="text" class="input narrow"  maxlength="32" name="incomeRecord.incomersName" id="incomersName"  value="{{lz.htm(incomeRecord.incomersName)}}"/>
	 	 </lz:block>
	 	 
	 	 <em>请输入会员收益记录的贡献人名称</em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{incomersName_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="incomersName">{{incomeRecord.incomersName}}</textarea>
		 		<span>
		 	
			 {{lz.html(incomeRecord.incomersName$||incomeRecord.incomersName)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$incomersName}}
					
	{{lz.set("incomerName_editable",((edittype=='insert'||(edittype=='inport' && (!lz.idin(inports,"incomerName"))))&&false)||(edittype=='update'&&false)||((edittype=='any')&&(lz.idin(fields,"incomerName"))))}}
	{{lz.set("incomerName_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
				
	
	{{before$incomerName}}
	<dl lz:if="{{incomerName_editable||incomerName_readonly}}" class="incomerName  " major  ref="incomerName">
		<dt>收益人姓名:</dt>
		<dd lz:if="{{incomerName_editable}}" input="text">
			<lz:block lz:if="{{incomeRecord$incomerName}}">
				{{incomeRecord$incomerName}}
			</lz:block>
			<lz:block lz:if="{{!incomeRecord$incomerName}}">
		 	<input type="text" class="input narrow"  maxlength="32" name="incomeRecord.incomerName" id="incomerName"  value="{{lz.htm(incomeRecord.incomerName)}}"/>
	 	 </lz:block>
	 	 
	 	 <em>请输入会员收益记录的收益人姓名</em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{incomerName_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="incomerName">{{incomeRecord.incomerName}}</textarea>
		 		<span>
		 	
			 {{lz.html(incomeRecord.incomerName$||incomeRecord.incomerName)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$incomerName}}
					
	{{lz.set("contributor_editable",((edittype=='insert'||(edittype=='inport' && (!lz.idin(inports,"contributor"))))&&true)||(edittype=='update'&&true)||((edittype=='any')&&(lz.idin(fields,"contributor"))))}}
	{{lz.set("contributor_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
				
	
	{{before$contributor}}
	<dl lz:if="{{contributor_editable||contributor_readonly}}" class="ribs contributor  " minor  ref="contributor">
		<dt>贡 献 人:</dt>
		<dd lz:if="{{contributor_editable}}" input="query">
			<lz:block lz:if="{{incomeRecord$contributor}}">
				{{incomeRecord$contributor}}
			</lz:block>
			<lz:block lz:if="{{!incomeRecord$contributor}}">
		 			<input title="请输入会员信息昵称进行查询" class="combox narrow" action="/admin/users/member.query.do?value={param}" type="text" id="contributor" name="incomeRecord.contributor" text="{{lz.html(incomeRecord.contributor$||incomeRecord.contributor)}}" value="{{lz.htm(incomeRecord.contributor)}}" />
		 			<a class="lookup" href="javascript:void(0);" onclick="if($.trim($('#contributor').val())==''){return;};window.href('/admin/users/member.detail.html?key='+$('#contributor').val())"></a>
	 	 </lz:block>
	 	 
	 	 <em></em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{contributor_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="contributor">{{incomeRecord.contributor}}</textarea>
		 		<span>
		 	
			 <a href="javascript:void(0);" onclick="window.href('/admin/users/member.details.html?key=incomeRecord.contributor}')">
			 {{lz.html(incomeRecord.contributor$||incomeRecord.contributor)}}</a>
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$contributor}}
					
	{{lz.set("beneficiary_editable",((edittype=='insert'||(edittype=='inport' && (!lz.idin(inports,"beneficiary"))))&&true)||(edittype=='update'&&true)||((edittype=='any')&&(lz.idin(fields,"beneficiary"))))}}
	{{lz.set("beneficiary_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
				
	
	{{before$beneficiary}}
	<dl lz:if="{{beneficiary_editable||beneficiary_readonly}}" class="ribs beneficiary  " minor  ref="beneficiary">
		<dt>收 益 人:</dt>
		<dd lz:if="{{beneficiary_editable}}" input="query">
			<lz:block lz:if="{{incomeRecord$beneficiary}}">
				{{incomeRecord$beneficiary}}
			</lz:block>
			<lz:block lz:if="{{!incomeRecord$beneficiary}}">
		 			<input title="请输入会员信息昵称进行查询" class="combox narrow" action="/admin/users/member.query.do?value={param}" type="text" id="beneficiary" name="incomeRecord.beneficiary" text="{{lz.html(incomeRecord.beneficiary$||incomeRecord.beneficiary)}}" value="{{lz.htm(incomeRecord.beneficiary)}}" />
		 			<a class="lookup" href="javascript:void(0);" onclick="if($.trim($('#beneficiary').val())==''){return;};window.href('/admin/users/member.detail.html?key='+$('#beneficiary').val())"></a>
	 	 </lz:block>
	 	 
	 	 <em></em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{beneficiary_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="beneficiary">{{incomeRecord.beneficiary}}</textarea>
		 		<span>
		 	
			 <a href="javascript:void(0);" onclick="window.href('/admin/users/member.details.html?key=incomeRecord.beneficiary}')">
			 {{lz.html(incomeRecord.beneficiary$||incomeRecord.beneficiary)}}</a>
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$beneficiary}}
					
	{{lz.set("orderNumber_editable",((edittype=='insert'||(edittype=='inport' && (!lz.idin(inports,"orderNumber"))))&&false)||(edittype=='update'&&false)||((edittype=='any')&&(lz.idin(fields,"orderNumber"))))}}
	{{lz.set("orderNumber_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
				
	
	{{before$orderNumber}}
	<dl lz:if="{{orderNumber_editable||orderNumber_readonly}}" class="orderNumber  " major  ref="orderNumber">
		<dt>订单编号:</dt>
		<dd lz:if="{{orderNumber_editable}}" input="text">
			<lz:block lz:if="{{incomeRecord$orderNumber}}">
				{{incomeRecord$orderNumber}}
			</lz:block>
			<lz:block lz:if="{{!incomeRecord$orderNumber}}">
		 	<input type="text" class="input narrow"  maxlength="32" name="incomeRecord.orderNumber" id="orderNumber"  value="{{lz.htm(incomeRecord.orderNumber)}}"/>
	 	 </lz:block>
	 	 
	 	 <em>请输入会员收益记录的订单编号</em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{orderNumber_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="orderNumber">{{incomeRecord.orderNumber}}</textarea>
		 		<span>
		 	
			 {{lz.html(incomeRecord.orderNumber$||incomeRecord.orderNumber)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$orderNumber}}
					
	{{lz.set("brands_editable",((edittype=='insert'||(edittype=='inport' && (!lz.idin(inports,"brands"))))&&true)||(edittype=='update'&&true)||((edittype=='any')&&(lz.idin(fields,"brands"))))}}
	{{lz.set("brands_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
				
	
	{{before$brands}}
	<dl lz:if="{{brands_editable||brands_readonly}}" class="ribs brands  " major  ref="brands">
		<dt>品牌信息:</dt>
		<dd lz:if="{{brands_editable}}" input="query">
			<lz:block lz:if="{{incomeRecord$brands}}">
				{{incomeRecord$brands}}
			</lz:block>
			<lz:block lz:if="{{!incomeRecord$brands}}">
		 			<input title="请输入品牌信息品牌名称进行查询" class="combox narrow" action="/admin/business/merchant.query.do?value={param}" type="text" id="brands" name="incomeRecord.brands" text="{{lz.html(incomeRecord.brands$||incomeRecord.brands)}}" value="{{lz.htm(incomeRecord.brands)}}" />
		 			<a class="lookup" href="javascript:void(0);" onclick="if($.trim($('#brands').val())==''){return;};window.href('/admin/business/merchant.detail.html?key='+$('#brands').val())"></a>
	 	 </lz:block>
	 	 
	 	 <em></em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{brands_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="brands">{{incomeRecord.brands}}</textarea>
		 		<span>
		 	
			 <a href="javascript:void(0);" onclick="window.href('/admin/business/merchant.details.html?key=incomeRecord.brands}')">
			 {{lz.html(incomeRecord.brands$||incomeRecord.brands)}}</a>
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$brands}}
					
	{{lz.set("endStatus_editable",((edittype=='insert'||(edittype=='inport' && (!lz.idin(inports,"endStatus"))))&&true)||(edittype=='update'&&true)||((edittype=='any')&&(lz.idin(fields,"endStatus"))))}}
	{{lz.set("endStatus_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
				
	
	{{before$endStatus}}
	<dl lz:if="{{endStatus_editable||endStatus_readonly}}" class="ribs endStatus  " major  ref="endStatus">
		<dt>结算情况:</dt>
		<dd lz:if="{{endStatus_editable}}" input="select">
			<lz:block lz:if="{{incomeRecord$endStatus}}">
				{{incomeRecord$endStatus}}
			</lz:block>
			<lz:block lz:if="{{!incomeRecord$endStatus}}">
		 	<select class="narrow" id="endStatus" name="incomeRecord.endStatus">
		 		<option value="">请选择</option>
				<option value="1" selected='{{incomeRecord.endStatus=="1"?"selected":""}}'>待结算</option>
				<option value="2" selected='{{incomeRecord.endStatus=="2"?"selected":""}}'>已结算</option>
		 	</select>
	 	 </lz:block>
	 	 
	 	 <em>请选择会员收益记录的结算情况</em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{endStatus_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="endStatus">{{incomeRecord.endStatus}}</textarea>
		 		<span>
		 	
			 {{lz.html(incomeRecord.endStatus$||incomeRecord.endStatus)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$endStatus}}
					
	{{lz.set("updateTime_editable",((edittype=='insert'||(edittype=='inport' && (!lz.idin(inports,"updateTime"))))&&false)||(edittype=='update'&&false)||((edittype=='any')&&(lz.idin(fields,"updateTime"))))}}
	{{lz.set("updateTime_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
				
	
	{{before$updateTime}}
	<dl lz:if="{{updateTime_editable||updateTime_readonly}}" class="updateTime  " major  ref="updateTime">
		<dt>修改时间:</dt>
		<dd lz:if="{{updateTime_editable}}" input="datetime">
			<lz:block lz:if="{{incomeRecord$updateTime}}">
				{{incomeRecord$updateTime}}
			</lz:block>
			<lz:block lz:if="{{!incomeRecord$updateTime}}">
		 	<input onchange="void(0);" onClick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})" type="text" class="datetime input narrow" maxlength="19" name="incomeRecord.updateTime" id="updateTime"  value="{{incomeRecord.updateTime$}}"/>
	 	 </lz:block>
	 	 <b>*</b>
	 	 <em>请选择会员收益记录的修改时间</em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{updateTime_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="updateTime">{{incomeRecord.updateTime}}</textarea>
		 		<span>
		 	
			 {{lz.html(incomeRecord.updateTime$||incomeRecord.updateTime)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$updateTime}}
					
	{{lz.set("addTime_editable",((edittype=='insert'||(edittype=='inport' && (!lz.idin(inports,"addTime"))))&&false)||(edittype=='update'&&false)||((edittype=='any')&&(lz.idin(fields,"addTime"))))}}
	{{lz.set("addTime_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
				
	
	{{before$addTime}}
	<dl lz:if="{{addTime_editable||addTime_readonly}}" class="addTime  " major  ref="addTime">
		<dt>添加时间:</dt>
		<dd lz:if="{{addTime_editable}}" input="datetime">
			<lz:block lz:if="{{incomeRecord$addTime}}">
				{{incomeRecord$addTime}}
			</lz:block>
			<lz:block lz:if="{{!incomeRecord$addTime}}">
		 	<input onchange="void(0);" onClick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})" type="text" class="datetime input narrow" maxlength="19" name="incomeRecord.addTime" id="addTime"  value="{{incomeRecord.addTime$}}"/>
	 	 </lz:block>
	 	 <b>*</b>
	 	 <em>请选择会员收益记录的添加时间</em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{addTime_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="addTime">{{incomeRecord.addTime}}</textarea>
		 		<span>
		 	
			 {{lz.html(incomeRecord.addTime$||incomeRecord.addTime)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$addTime}}
					
	{{lz.set("status_editable",((edittype=='insert'||(edittype=='inport' && (!lz.idin(inports,"status"))))&&false)||(edittype=='update'&&true)||((edittype=='any')&&(lz.idin(fields,"status"))))}}
	{{lz.set("status_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
				
	
	{{before$status}}
	<dl lz:if="{{status_editable||status_readonly}}" class="status  " major  ref="status">
		<dt>状　　态:</dt>
		<dd lz:if="{{status_editable}}" input="select">
			<lz:block lz:if="{{incomeRecord$status}}">
				{{incomeRecord$status}}
			</lz:block>
			<lz:block lz:if="{{!incomeRecord$status}}">
		 	<select class="narrow" id="status" name="incomeRecord.status">
		 		<option value="">请选择</option>
				<option value="1" selected='{{incomeRecord.status=="1"?"selected":""}}'>正常</option>
				<option value="0" selected='{{incomeRecord.status=="0"?"selected":""}}'>无效</option>
		 	</select>
	 	 </lz:block>
	 	 <b>*</b>
	 	 <em>请选择会员收益记录的状态</em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{status_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="status">{{incomeRecord.status}}</textarea>
		 		<span>
		 	
			 {{lz.html(incomeRecord.status$||incomeRecord.status)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$status}}
			
			
			
			<div class="line">
				<center lz:if="{{edittype=='insert'}}">
					<a onclick="$('.ribs').show();window.fireResize();$('.ribs-handle').toggle();" href="javascript:void(0);" class="state-content ribs-handle" style="display:inline;padding: 0px 15px;">点击展开更多编辑项</a>
					<a onclick="$('.ribs').hide();window.fireResize();$('.ribs-handle').toggle();" href="javascript:void(0);" class="state-content ribs-handle" style="display:none;padding: 0px 15px;">点击收起更多编辑项</a>
				</center>
			</div>
			<center class="buttons">
				<input type="hidden" value="{{incomeRecord.id}}" name="incomeRecord.id" id="id" />
			
			<lz:block lz:if="{{edittype=='insert'||edittype=='update'||edittype=='any'||edittype=='inport'}}">
				<button class="button" type="submit">
					&nbsp;<img class="iconA" align="absmiddle" width="20" src="/admin/images/icons/Badge-tick.png"/>
					<span class="iconB iconfont icon-weibiaoti8"></span>
					保存&nbsp;&nbsp;</button>
				<button title="不保存数据,关闭窗口,不刷新原列表" class="button" onclick="cancel();" type="button">
					&nbsp;<img class="iconA" align="absmiddle" width="20" src="/admin/images/icons/Badge-multiply.png"/>
					<span class="iconB iconfont icon-icon11"></span>
					关闭&nbsp;&nbsp;</button>
			</lz:block>
			
			<lz:block lz:if="{{edittype=='detail'}}">
				
				
				
				
				
				
				
				
				<button lz:if="{{canEdit}}" type="button" class="button" onclick='window.location.href="/admin/finance/incomerecord.edit.html?edittype=update&id={{incomeRecord.id}}"'>
					&nbsp;<img class="iconA" align="absmiddle" width="20" src="/admin/images/icons/Badge-tick.png"/>
					<span class="iconB iconfont icon-weibiaoti8"></span>
					修改&nbsp;&nbsp;</button>
				
				
				<button title="不保存数据,关闭窗口,不刷新原列表" class="button" onclick="cancel();" type="button">
					&nbsp;<img class="iconA" align="absmiddle" width="20" src="/admin/images/icons/Badge-multiply.png"/>
					<span class="iconB iconfont icon-icon11"></span>
					关闭&nbsp;&nbsp;</button>
			</lz:block>
					
			</center>
			<br/>

		</div>
	</div>
	<div class="foot"></div>		
</form>





 


<!------------------------VIEW_HTML_BOTTOM------------------------>
<!------------------------VIEW_HTML_BOTTOM------------------------>


</body>

<!------------------------VIEW_HTML_FOOTER------------------------>
<!------------------------VIEW_HTML_FOOTER------------------------>
<script>
	
	$(function(){
		if(parent.setit){
			parent.setit("/admin/finance/incomerecord.edit.html",document.title,"/admin//images/icons/1702680819.png");
		}
	});
	
	function cancel(){
		if(parent.closeHref){
			parent.closeHref("/admin/finance/incomerecord.edit.html");
		}else{
			$.closeModalDialog();
		}
	}



</script>
</html>